package work.atpgroup.service.impl;

import org.springframework.stereotype.Service;
import work.atpgroup.entity.Permission;
import work.atpgroup.mapper.PermissionMapper;
import work.atpgroup.service.PermissionService;

import javax.annotation.Resource;
import java.util.List;
@Service("permissionService")
public class PermissionServiceImpl implements PermissionService {
    @Resource(name="permissionMapper")
    PermissionMapper permissionMapper;
    @Override
    public Permission getPermissionById(Integer id) {
        return permissionMapper.getPermissionById(id);
    }

    @Override
    public List<Permission> getPermissionList() {
        return permissionMapper.getPermissionList();
    }
}
